<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <div id="tab-1" class="tab-pane active">
        <div class="panel-body">
            <div class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-2 control-label">讲师名称：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${teacher['teacherName']}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">讲师性质：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${teacher['teacherType']==1?'平台自有':'入驻讲师'}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">专业：</label>
                    <div class="col-sm-10">
                        <th:block th:if="!${#lists.isEmpty(teacher['subjectList'])}">
                            <span class="fs12 c-4e" th:each="subject,subIndex : ${teacher['subjectList']}">
                                <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                                <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                                    <th:block th:if="${index.last} == false" th:text="${child['subjectName']}+'/'"></th:block>
                                    <th:block th:if="${index.last} == true" th:text="${child['subjectName']}"></th:block>
                                </th:block>
                                <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                                <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                            </span>
                        </th:block>
                        <th:block th:if="${#lists.isEmpty(teacher['subjectList'])}">
                            <span class="fs12 c-4e">—</span>
                        </th:block>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">讲师详情介绍：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${teacher['depict']}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">注册时间：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${#strings.substring(teacher['createTime'],0,16)}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">后台账号：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${#maps.isEmpty(teacher['sysUser'])}?'—': ${teacher['sysUser']['ralName'] + '/' + teacher['sysUser']['username']}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">注册手机：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${#maps.isEmpty(teacher['sysUser'])}?'—': ${teacher['sysUser']['mobile']}"></p>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">是否问答专家 ：</label>
                    <div class="col-sm-10">
                        <p class="form-control-static" th:text="${teacher['isQuestion']==1}?'是': '否'"></p>
                    </div>
                </div>
                <div th:if="${teacher['isQuestion']==1}">
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">负责问题类型：</label>
                        <div class="col-sm-10">
                            <p class="form-control-static" th:text="${teacher['qaType']['typeName']}"></p>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">提问费用：</label>
                        <div class="col-sm-10">
                            <p class="form-control-static" th:text="${teacher['questionFee']}"></p>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">分成比例：</label>
                        <div class="col-sm-10">
                            <p class="form-control-static" th:text="${teacher['separateInto']}+ ' %'"></p>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">提现账户：</label>
                        <div class="col-sm-10">
                            <p class="form-control-static" th:text="${teacher['accountType']==1}?'支付宝':(${teacher['accountType']==2}?'微信':'银行卡') + ' — ' + ${teacher['account']}"></p>
                        </div>
                    </div>
                    <div th:if="${teacher['accountType']==3}" class="hr-line-dashed"></div>
                    <div th:if="${teacher['accountType']==3}" class="form-group">
                        <label class="col-sm-2 control-label">开户行地址：</label>
                        <div class="col-sm-10">
                            <p class="form-control-static" th:text="${teacher['accountAddress']}"></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</html>
